#######################################
###		Kernel		    ###
#######################################

include $(AB_PATH)/Makefile.inc

OBJS	= main.o

all: kernel.bin

kernel.exe: $(OBJS) $(MAKEFILES)
	$(LINK) $(OBJS) -o kernel.exe -Ttext 0x00000000 -Map kernel.map

kernel.bin: kernel.exe $(MAKEFILES)
	$(OBJCOPY) -O binary kernel.exe kernel.bin -R .comment -R .note
	$(DISASM) -b 32 kernel.bin > kernel.asm
	$(CP) kernel.bin ..\disk\kernel.bin

clean:
	$(DEL) kernel.exe